home *** CD-ROM | disk | FTP | other *** search
- Path: pogner.demon.co.uk!pogner!simon
- From: simon@pogner.demon.co.uk (Simon Wright)
- Newsgroups: comp.lang.ada,comp.lang.c++
- Subject: Re: some questions re. Ada/GNAT from a C++/GCC user
- Date: 30 Mar 1996 15:31:24 GMT
- Organization: At Home
- Distribution: world
- Message-ID: <SIMON.96Mar30153124@pogner.demon.co.uk>
- References: <wnewmanDoxrCp.DKv@netcom.com>
- <4je9ju$174r@watnews1.watson.ibm.com>
- <ROGOFF.96Mar28134118@sccm.Stanford.EDU>
- <4jhe1v$m0g@dayuc.dayton.saic.com>
- NNTP-Posting-Host: pogner.demon.co.uk
- X-NNTP-Posting-Host: pogner.demon.co.uk
- In-reply-to: John G. Volan's message of 29 Mar 1996 19:35:27 GMT
-
- In article <4jhe1v$m0g@dayuc.dayton.saic.com> John G. Volan <John_Volan@ccmail.dayton.saic.com> writes:
- [...]
- > A C programmer would complain about having to introduce an extra
- > begin/end block in order to introduce variables. Isn't the scope
- > of a variable well-defined in C, even without this extra baggage?
- > It just extends from the declaration to the end of whatever block
- > you're already in.
- >
- > An Ada programmer would counter that, in Ada, some variables might be
- > instances of _task_ types. By definition, a task object gets created
- [...]
-
- I would be quite likely to use declare blocks to introduce types and
- instantiations, for example where the size of a data structure wasn't
- known until that point.
-
- --
- Simon Wright Work Email: simon.j.wright@gecm.com
- Ferranti Naval Systems Voice: +44(0)1705-701778
- GEC-Marconi S3I Combat Systems Division FAX: +44(0)1705-701800
-